using SqlSugar;

namespace DefaultModels
{
    /// <summary>
    /// 总运行时间信息
    /// OEE
    /// </summary>
    [SugarTable("cks_performancerecord")]
    [Table(Name = "cks_performancerecord")]
    public class CksPerformancerecord
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary =true,IsIdentity =true)]
        public int Id { get; set; }
        /// <summary>
        /// 计划产量
        /// </summary>
        [SugarColumn(ColumnName = "PlantQuantity")]
        public float PlantQuantity { get; set; }
        /// <summary>
        /// 计划运行时间
        /// </summary>
        [SugarColumn(ColumnName = "PlantRunTime")]
        public float PlantRunTime { get; set; }
        /// <summary>
        /// 总运行时间
        /// </summary>
        [SugarColumn(ColumnName = "TotalRunTime")]
        public float TotalRunTime { get; set; }
        /// <summary>
        /// 故障时间
        /// </summary>
        [SugarColumn(ColumnName = "FaultTime")]
        public float FaultTime { get; set; }
        /// <summary>
        /// 待料时间
        /// </summary>
        [SugarColumn(ColumnName = "StopTime")]
        public float StopTime { get; set; }
        /// <summary>
        /// 总产量
        /// </summary>
        [SugarColumn(ColumnName = "TotalQuantity")]
        public float TotalQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "ProductYield")]
        public float ProductYield { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "OEE")]
        public double OEE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Remarks")]
        public string Remarks { get; set; }=string.Empty;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "CreatedTime")]
        public DateTime CreatedTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "ModifiedTime")]
        public DateTime ModifiedTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 空闲时间
        /// </summary>
        [SugarColumn(ColumnName = "WaitingTime")]
        public float WaitingTime { get; set; }
    }
}